package com.aruba.service.impl;

import com.aruba.bean.User;
import com.aruba.mapper.UserMapper;
import com.aruba.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User findUser(String name) {
        return userMapper.findUserByUsername(name);
    }
}
